import 'package:flutter/material.dart';
import 'package:dio/dio.dart';

void getHttp() async{
  try {
    Response response;
    response = await Dio().get('path');
    return print(response);
    
  } catch (e) {
    return print(e);
  }
}

class Index extends StatelessWidget {
  const Index({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        child: Center(child: Text('首页内容'),),
      ),
    );
  }
}